#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QAction>
#include <QMenu>
#include <QSystemTrayIcon>
#include <QMediaPlayer>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
	Q_OBJECT

public:
	explicit MainWindow(QWidget *parent = 0);
	~MainWindow();

private:
	Ui::MainWindow *ui;

	QAction* action_quit;
	QAction* action_help;
	QAction* action_about;
	QAction* action_order;

	QMenu* trayIconMenu;
	QSystemTrayIcon* trayIcon;
	QMediaPlayer* player;

	int userType;
	int mainTimer;
	int quitTimer;
	int lastShowTime;

	// QObject interface
protected:
	void timerEvent(QTimerEvent* event);

	void showTipWin();

	void createActions();

protected slots:
	void showHelp();
	void showAbout();
	void showOrder();

};

#endif // MAINWINDOW_H
